package init

import (
	"fmt"
	"github.com/spf13/viper"
	"monment/basic/config"
)

func InitConfig() {
	viper.SetConfigFile("../init/config.yaml")
	err := viper.ReadInConfig()
	if err != nil {
		panic(err)
	}
	viper.Unmarshal(&config.AppCfg)
	fmt.Println("配置信息: ", config.AppCfg)
}
